package zy.testscan;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import zy.test.Result;
import zy.test.ScanGunThread;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ScanGunThread scanGunThread=new ScanGunThread();
        scanGunThread.setListener(new ScanGunThread.Listener() {
            @Override
            public void onListener(Result str) {
                Log.i("hello",str.toString());
            }
        });
        scanGunThread.start();
        setContentView(R.layout.activity_main);
    }
}
